﻿namespace IPMS.BLL
{
    using System;
    using System.Web.UI;

    public class Global
    {
        public int ShowError(Page currPage, bool bBool)
        {
            string showRow_javaScript = "<script type='text/javascript' language='javascript'> \n";
            object ret = showRow_javaScript;
            showRow_javaScript = ((string.Concat(new object[] { ret, "if (", bBool, ") { \n" }) + "   document.getElementById('tblError').style.display = 'inline'; } \n" + "   document.getElementById('tblError').style.background-color = 'beige'; } \n") + " else { \n" + "   document.getElementById('tblError').style.display = 'inline';  \n") + "   document.getElementById('tblError').style.background-color = 'beige'; } \n" + "} </script>";
            currPage.ClientScript.RegisterStartupScript(currPage.GetType(), "regShowRow", showRow_javaScript);
            return 0;
        }
    }
}

